package pers.lmd.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author lmd
 * @Date 2023/4/3 13:43
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {
    SUCCESS("00000", "一切 ok"),
    FAIL("A0001", "用户端错误"),
    FAIL_LOGIN_USERNAME("A0201","用户名错误"),
    FAIL_LOGIN_PASSWORD("A0210", "密码错误"),
    FAIL_LOGIN_USERNAME_OR_PASSWORD("A0210","用户名或密码错误"),
    FAIL_LOGIN_CAPTCHA("A0240","验证码错误"),
    FAIL_SYSTEM("B0001","系统执行出错"),
    NO_PERMISSION_ERROR("A0301","访问未授权"),
    NO_LOGIN_ERROR("A0200","用户登录异常");

    private final String code;

    private final String message;
}